<!DOCTYPE html>
<html>
<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商务政策列表</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__PUBLIC__/dist/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="__PUBLIC__/dist/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="__PUBLIC__/dist/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>商务政策列表</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-1 m-b-xs">
                                <a href="{:Url('CarRules/info')}" class="btn btn-primary ">
                                    新增政策
                                </a>
                            </div>
                            <form method="get">
                                <div class="col-sm-2 m-b-xs">
                                    <select class="form-control" name="car_id">
                                        <option value="">选择车辆</option>
                                        {foreach name="cars" item="value"}
                                        {if condition="!empty($car_id) && $car_id>0 && $value.id == $car_id"}
                                        <option value="{$value.id}" selected="selected">{$value.plate_no}</option>
                                        {else/}
                                        <option value="{$value.id}">{$value.plate_no}</option>
                                        {/if}
                                        {/foreach}
                                    </select>
                                </div>
                                <div class="col-sm-2 m-b-xs">
                                    <select class="form-control" name="car_mode">
                                        <option value="">型号</option>
                                        {foreach name="car_modes" item="value"}
                                        {if condition="$car_mode!=null && $value.id == $car_mode"}
                                        <option value="{$value.id}" selected="selected">{$value.config_name}</option>
                                        {else/}
                                        <option value="{$value.id}">{$value.config_name}</option>
                                        {/if}
                                        {/foreach}
                                    </select>
                                </div>
                                <div class="col-sm-2 m-b-xs">
                                    <select class="form-control" name="hire_mode">
                                        <option value="">租赁类型</option>
                                        {foreach name="hire_modes" item="value"}
                                        {if condition="$hire_mode!=null && $value.id == $hire_mode"}
                                        <option value="{$value.id}" selected="selected">{$value.config_name}</option>
                                        {else/}
                                        <option value="{$value.id}">{$value.config_name}</option>
                                        {/if}
                                        {/foreach}
                                    </select>
                                </div>
                                <div class="col-sm-2 m-b-xs">
                                    <select class="form-control" name="sale_mode">
                                        <option value="">政策类型</option>
                                        {if condition="!empty($sale_mode) && $sale_mode>0"}
                                        <option value="{$value.id}" selected="selected">是</option>
                                        {else/}
                                        <option value="{$value.id}">是</option>
                                        {/if}
                                        {if condition="!empty($sale_mode) && $sale_mode == 0"}
                                        <option value="{$value.id}" selected="selected">否</option>
                                        {else/}
                                        <option value="{$value.id}">否</option>
                                        {/if}
                                    </select>
                                </div>
                                <div class="col-sm-2 m-b-xs">
                                    <input type="text" placeholder="关键字" value="{$keyword}" name="keyword" class="form-control">
                                </div>
                                <div class="col-sm-1 m-b-xs">
                                    <input type="submit" class="btn btn-primary" value="搜索" />
                                </div>
                            </form>
                        </div>
                        <table class="table table-bordered text-center">
                            <thead>
                                <tr>
                                    <th class="hidden-xs">ID</th>
                                    <th>车牌</th>
                                    <th class="hidden-xs">车型</th>
                                    <th class="hidden-xs">政策类型</th>
                                    <th>租赁类型</th>
                                    <th class="hidden-xs">押金/首付</th>
                                    <th class="hidden-xs">月租</th>
                                    <th class="hidden-xs">全款</th>
                                    <th class="hidden-xs">其他费用</th>
                                    <th class="hidden-xs">折扣金额</th>
                                    <th class="hidden-xs">总金额</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="list" id="v"}
                                <tr>
                                    <td class="hidden-xs">{$v.id}</td>
                                    <td>{$v.plate_no}</td>
                                    <td class="hidden-xs">{$v.car_mode_name}</td>
                                    <td class="hidden-xs">
                                        {if condition="$v.sale_mode eq 0"}
                                        进
                                        {else/}
                                        销
                                        {/if}
                                    </td>
                                    <td>{$v.hire_mode_name}</td>
                                    <td class="hidden-xs">￥{$v.deposit_price|number_format=2}</td>
                                    <td class="hidden-xs">￥{$v.hire_price|number_format=2}</td>
                                    <td class="hidden-xs">￥{$v.total_amount|number_format=2}</td>
                                    <td class="hidden-xs">￥{$v.other_amount|number_format=2}</td>
                                    <td class="hidden-xs">￥{$v.discount_amount|number_format=2}</td>
                                    <td class="hidden-xs">￥{$v.amount|number_format=2}</td>
                                    <td class="col-sm-2">
                                        <a href="{:Url('CarRules/info',array('id'=>$v['id']))}" class="btn btn-warning btn-xs">编辑</a>
                                        <a href="{:Url('CarConfig/del',array('id'=>$v['id']))}" class="btn btn-danger btn-xs"
                                            onclick="return confirm('确认删除？');">删除</a>
                                    </td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                        <div style="text-align: center;">
                            {$page}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="__PUBLIC__/dist/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/dist/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/dist/js/plugins/jeditable/jquery.jeditable.js"></script>
    <script src="__PUBLIC__/dist/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="__PUBLIC__/dist/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="__PUBLIC__/dist/js/content.min.js?v=1.0.0"></script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:02 GMT -->

</html>